package com.ruoyi.od.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.od.mapper.OdActivityMapper;
import com.ruoyi.od.domain.OdActivity;
import com.ruoyi.od.service.IOdActivityService;

/**
 * 活动审核Service业务层处理
 * 
 * @author 榛子
 * @date 2023-07-29
 */
@Service
public class OdActivityServiceImpl implements IOdActivityService 
{
    @Autowired
    private OdActivityMapper odActivityMapper;

    /**
     * 查询活动审核
     * 
     * @param id 活动审核主键
     * @return 活动审核
     */
    @Override
    public OdActivity selectOdActivityById(Long id)
    {
        return odActivityMapper.selectOdActivityById(id);
    }

    /**
     * 查询活动审核列表
     * 
     * @param odActivity 活动审核
     * @return 活动审核
     */
    @Override
    public List<OdActivity> selectOdActivityList(OdActivity odActivity)
    {
        return odActivityMapper.selectOdActivityList(odActivity);
    }

    /**
     * 新增活动审核
     * 
     * @param odActivity 活动审核
     * @return 结果
     */
    @Override
    public int insertOdActivity(OdActivity odActivity)
    {
        return odActivityMapper.insertOdActivity(odActivity);
    }

    /**
     * 修改活动审核
     * 
     * @param odActivity 活动审核
     * @return 结果
     */
    @Override
    public int updateOdActivity(OdActivity odActivity)
    {
        return odActivityMapper.updateOdActivity(odActivity);
    }

    /**
     * 批量删除活动审核
     * 
     * @param ids 需要删除的活动审核主键
     * @return 结果
     */
    @Override
    public int deleteOdActivityByIds(Long[] ids)
    {
        return odActivityMapper.deleteOdActivityByIds(ids);
    }

    /**
     * 删除活动审核信息
     * 
     * @param id 活动审核主键
     * @return 结果
     */
    @Override
    public int deleteOdActivityById(Long id)
    {
        return odActivityMapper.deleteOdActivityById(id);
    }

}
